package method;
/*
sleep(): 休眠多少毫秒
 */
public class ThreadMethodDemo1 {
    public static void main(String[] args) throws InterruptedException {
        for (int i = 10; i >0 ; i--) {
            System.out.println("倒计时" + i + "秒");
            Thread.sleep(1000);
        }
    }
}
